import {percent} from './percent.js';
//获取按钮
let btn = document.querySelector("button");

//绑定事件
btn.onclick = function(){
    if(percent(20)){
        alert('恭喜');
    }else{
        alert('加油!!');
    }
}